package com.lanchetech.dao;

import org.apache.ibatis.annotations.Param;

import java.util.List;

import com.lanchetech.entity.BlogSpu;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface BlogSpuMapper {
    int deleteByPrimaryKey(Long id);

    int insert(BlogSpu record);

    int insertSelective(BlogSpu record);

    BlogSpu selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(BlogSpu record);

    int updateByPrimaryKey(BlogSpu record);

    List<BlogSpu> findAllByBlogId(@Param("blogId") Long blogId);

    int batchInsert(@Param("list") List<BlogSpu> blogSpus);

    int deleteByBlogId(@Param("blogId") Long blogId);


    List<BlogSpu> findByBlogIds(@Param("list") List<Long> collect);
}